package com.yyds.yygh.hospclient.service;

import com.yyds.yygh.model.hosp.Department;
import com.yyds.yygh.vo.hosp.DepartmentQueryVo;
import com.yyds.yygh.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface DepartmentService {
    //添加科室
    void save(Map<String, Object> map);
    //分页查询科室
    Page<Department> findDepartment(int pageNum, int pageSize, DepartmentQueryVo departmentQueryVo);
    //根据医院和科室code删除科室
    void removeDepartment(String hoscode, String depcode);
    //根据医院查询子科室列表
    List<DepartmentVo> findDeptTree(String hoscode);
    //获取科室名称
    String getDepName(String hoscode, String depcode);
    //根据医院和科室code获取科室名字获得科室信息
    Department getDepartment(String hoscode, String depcode);
}
